import request from '@/utils/request'

// 查询线索回调日志列表
export function listCallbackLog(query) {
  return request({
    url: '/source/callbackLog/list',
    method: 'get',
    params: query
  })
}

// 查询线索回调日志详细
export function getCallbackLog(id) {
  return request({
    url: '/source/callbackLog/' + id,
    method: 'get'
  })
}

// 新增线索回调日志
export function addCallbackLog(data) {
  return request({
    url: '/source/callbackLog',
    method: 'post',
    data: data
  })
}

// 修改线索回调日志
export function updateCallbackLog(data) {
  return request({
    url: '/source/callbackLog',
    method: 'put',
    data: data
  })
}

// 删除线索回调日志
export function delCallbackLog(id) {
  return request({
    url: '/source/callbackLog/' + id,
    method: 'delete'
  })
}
